import axios from 'axios'
// 获取列表
export const getContentWordList = (params) => axios({
  url: '/mock/content/word',
  method: 'get',
  params
})
// 查单个
export const getContentWordDetail = id => axios({
  url: '/mock/content/word',
  method: 'get',
  params: {
    id
  }
})
// 新增
export const addContentWord = data => axios({
  url: '/mock/content/word',
  method: 'POST',
  data
})

// 修改
export const updateContentWord = data => axios({
  url: `/mock/content/word`,
  method: 'PUT',
  data
})

// 删除
export const delContentWordList = id => axios({
  url: '/mock/content/word',
  method: 'delete',
  params: {
    id
  }
})
